#切换整个游戏规则控制器的页面（-3）

#页面限制
$execute as @e[tag=UI-gamerule_control.ctr,distance=..10,type=item_display] if data entity @s Passengers[{Tags:["util.entity_owner.marker"]}].data{owner:$(owner)} if data entity @s Passengers[{Tags:["UI-gamerule_control.ctr.DM"]}].data{SG:0} run function dab:system/ui/gamerules/ui_previous_page_fail {owner:$(owner)}
$execute as @e[tag=UI-gamerule_control.ctr,distance=..10,type=item_display] if data entity @s Passengers[{Tags:["util.entity_owner.marker"]}].data{owner:$(owner)} if data entity @s Passengers[{Tags:["UI-gamerule_control.ctr.DM"]}].data{SG:0} run return fail

#切换
execute as @n[tag=UI-gamerule_control.PP_button_I,distance=..1] on target run playsound block.note_block.hat

$execute as @e[tag=UI-gamerule_control.ctr,distance=..10,type=item_display] if data entity @s Passengers[{Tags:["util.entity_owner.marker"]}].data{owner:$(owner)} at @s run function dab:system/ui/gamerules/previous_page with entity @s Passengers[{Tags:["UI-gamerule_control.ctr.DM"]}].data

data remove entity @n[tag=UI-gamerule_control.PP_button_I,distance=..1] interaction